**	File name: PRQ-Replication.do

**	Author: Ryan Black and Ryan Owens

**	Note: This file replicates the empirical results presented in the online supplement to our article on the influence of former law clerks. See the R code file for other replication code for the main article.

***************************
***** BEGIN CODE USED *****
***************************

** Case Selection Effect Analysis: Lindquist and Klein
use "~/desktop/ConflictData.dta", clear
ttest splitNet, by(formerClerk)

** Case Selection Effect Analysis: Corley, Steigerwalt, and Ward
use "~/desktop/ConsensusData.dta", clear
tab totClerks caseCertainty, all col
reg totClerks caseCertainty
ologit totClerks caseCertainty
poisson totClerks caseCertainty

** Substantive Expertise Analysis
use "~/desktop/SubExpert.dta", clear
logit winvote i.clerkCat oppFLC attyOAexp againstOAExp statusNet amiciSupport amiciAgainst attyPet attyMale ideoCompat strongOpp helpOSG totIssueOps, robust
logit winvote i.clerkCat oppFLC attyOAexp againstOAExp statusNet amiciSupport amiciAgainst attyPet attyMale ideoCompat strongOpp helpOSG totIssueCase, robust

** Attorney Trust vs. Knowledge Analysis
use "~/desktop/TrustKnow.dta", clear
logit winvote i.clerkCat##c.ajExp attyOAexp againstOAExp statusNet amiciSupport amiciAgainst attyPet attyMale ideoCompat strongOpp helpOSG oppFLC, robust
margins, over(clerkCat) at(ajExp = (1(5)25))
marginsplot, x(ajExp) level(95) noci
margins, dydx(ajExp) at(ajExp = (1(4)25) clerkCat = 4)

** Time Since Clerkship Analysis
use "~/desktop/TimeSinceClerkship.dta", clear
logit winvote termGap, robust
logit winvote termGap attyOAexp againstOAExp statusNet amiciSupport amiciAgainst attyPet attyMale ideoCompat strongOpp helpOSG oppFLC, robust
logit winvote termGapLog, robust
logit winvote termGapLog attyOAexp againstOAExp statusNet amiciSupport amiciAgainst attyPet attyMale ideoCompat strongOpp helpOSG oppFLC, robust

*************************
***** END CODE USED *****
*************************